package model

type UsersFriends struct {
	AppsId   uint  `json:"apps_id" xorm:"not null unique(apps_user_id_fid) comment('app id') INT"`
	UserId   int64 `json:"user_id" xorm:"BIGINT notnull unique(apps_user_id_fid) comment('归属者用户id')"`
	FriendId int64 `json:"friend_id" xorm:"friend_id BIGINT notnull unique(apps_user_id_fid) comment('关联用户id')"`
	Type     int   `json:"type" xorm:"INT notnull unique(apps_user_id_fid) comment('好友分类id -1:黑名单 0:未分组 other:分类id')"`
}

func (uu UsersFriends) TableName() string {
	return "users_friends"
}

const (
	UsersFriendsTypeGood int = 1
	UsersFriendsTypeBad  int = -1
)
const (
	UserFriendMyFollower int = 1 << iota
	UserFriendMyFocuser
	UserFriendTwoDirection = UserFriendMyFocuser | UserFriendMyFollower
)
